package com.bcu.calculus.mapper;

import com.bcu.calculus.entity.User;

import java.util.List;

public interface UserMapper {

    int deleteByPrimaryKey(String userId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(String userId);

    User findOneUserAndInfoByPrimaryKey(String userId);

    List<User> findAllUser();

    List<User> findAllUserAndInfo();

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> findUserAndInfoByUserInfoBranch(Integer branch);

    List<User> findAllUserAndInfoOrderByScoreInBranch(Integer branch);

}